import { globalStore } from '@/store'

const store = globalStore()
const { SNOWY_SYS_LOGO, SNOWY_SYS_NAME, SNOWY_SYS_VERSION } = store.sysBaseConfig

const sysTemplateData = {
	key: 'providerSysModule',
	options: {
		groupName: '',
		printElements: [
			{
				id: 1,
				tid: 'providerModule.text',
				title: '系统名称',
				type: 'text',
				options: {
					testData: '系统名称',
					field: 'SNOWY_SYS_NAME',
					height: 25.5,
					width: 177,
					fontWeight: '500',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			},
			{
				id: 2,
				tid: 'providerModule.image',
				title: '系统Logo',
				type: 'image',
				options: {
					src: SNOWY_SYS_LOGO,
					field: 'SNOWY_SYS_LOGO',
					width: 76.5,
					hideTitle: true
				}
			},
			{
				id: 3,
				tid: 'providerModule.text',
				title: '系统版本号',
				type: 'text',
				options: {
					testData: '系统版本号',
					field: 'SNOWY_SYS_VERSION',
					height: 25.5,
					width: 177,
					fontWeight: '400',
					textAlign: 'center',
					textContentVerticalAlign: 'middle',
					hideTitle: true
				}
			}
		]
	}
}

const sysPrintData = {
	SNOWY_SYS_LOGO,
	SNOWY_SYS_NAME,
	SNOWY_SYS_VERSION
}
export { sysTemplateData, sysPrintData }
